package com.study.demo.aop.anno;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author: elvin
 * @time: 2019-08-05 15:57
 * @desc:
 **/
@EnableAspectJAutoProxy
@Configuration
public class AopConfig {

    @Bean
    public Calculator calculator(){
        return new Calculator();
    }

    @Bean
    public CalculatorAspect calculatorAspect(){
        return new CalculatorAspect();
    }
}
